package com.zhl.scheduling.model.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author: ZhangLu In DLUT
 * @since: 1.0.0
 * @Description: 定义返回给客户端的JSON数据
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "ResultVO对象",description = "封装接口返回给前端的数据")
public class ResultVO {

    /**
     * 响应给前端的状态码
     */
    @ApiModelProperty(dataType = "int",required = true, value = "响应状态码")
    private Integer code;
    /**
     * 响应给前端的提示信息
     */
    @ApiModelProperty(dataType = "string",required = true, value = "响应状态信息")
    private String msg;
    /**
     * 响应给前端的数据
     */
    @ApiModelProperty(dataType = "object",required = true, value = "响应的数据")
    private Object data;
}
